package com.bawei.module_main.ui.splash

import com.bawei.module_main.http.MainApi
import com.bawei.module_main.http.MainNetModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 *作者：lxy
 *功能:
 *时间：2025/5/26
 */
class SplashRepository @Inject constructor() {

    @Inject
    @MainNetModule.CommonMainApi
    lateinit var mainApi: MainApi

    fun adList() = flow {
        emit(mainApi.adList())
    }.flowOn(Dispatchers.IO)
}